package com.cx.cloud.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author onoo
 * @create 2021-12-03
 **/
@RestController
@RequestMapping("web")
@RefreshScope
public class WebController {

    @Value ("${varVal}")
    private String varVal;

    @RequestMapping("hello")
    public String hello(){
        return varVal;
    }

}
